home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / disk / misc / Park.readme < prev   
Text File  |  1999-03-02  |  9KB  |  264 lines

  1. Short:    Parks devices and ejects media
  2. Author:   thor@math.tu-berlin.de (Thomas Richter)
  3. Uploader: thor@math.tu-berlin.de (Thomas Richter)
  4. Version:  1.08
  5. Type:     disk/misc
  6. Requires: Os 2.04
  7.  
  8. This tool ejects, parks or restarts a HD unit, either given by its DOS 
  9. device name or the name and unit of the exec device driver. All partitions 
  10. on the parked unit will be unaccessible to the dos afterwards. To be able to
  11. restart the HD, "Park" can be made resident.
  12.  
  13. _____________________________________________________________________________
  14.  
  15. Version 1.08:
  16.  
  17. If the NOCHECK option is present, Park no longer rejects to "eject"
  18. empty drives, i.e. to open an empty CD drive or similar. 
  19. Thanks to Nils Goers for testing.
  20.  
  21. _____________________________________________________________________________
  22.  
  23. Version 1.07:
  24.  
  25. Fixed a bug that caused an unnecessary "out of memory" failure in case no
  26. disk to be ejected is present.
  27.  
  28. Park uses now a smarter algorithm to decide whether the given argument is
  29. a dos device or an exec device name.
  30.  
  31. Better check for the SCSI result codes, the error code returned is now
  32. more "AmigaDos like".
  33. _____________________________________________________________________________
  34.  
  35. Version 1.06:
  36.  
  37. Added a workaround for a feature of the gvpscsi.device and the FFS.
  38. _____________________________________________________________________________
  39.  
  40. Version 1.05:
  41.  
  42. Added a workaround for a bug in the AmiCFDS, added the NOCHECK option.
  43. _____________________________________________________________________________
  44.  
  45. Version 1.04:
  46.  
  47. Internal release, unpublished.
  48. _____________________________________________________________________________
  49.  
  50. Version 1.03:
  51.  
  52. Added the EJECT argument - *should* be used with the SCSI argument, too.
  53. Added the EJECTDELAY, STARTDELAY and FLUSHDELAY arguments that define 
  54. command specific delays.
  55. _____________________________________________________________________________
  56.  
  57. Version 1.02:
  58.  
  59. Park checks now if a device is already parked (or, to be precise, if the
  60. filing system is shut down) and fails if the user tries to park it again.
  61. _____________________________________________________________________________
  62.  
  63. Version 1.01:
  64.  
  65. Added an explicit check whether the handler name supplied does really contain
  66. a colon.
  67. _____________________________________________________________________________
  68.  
  69. Synopsis:
  70.  
  71. Park     HANDLER=DEVICE/A,UNIT/N,FLAGS/N,SCSI/S,
  72.     ON=START/S,EJECT/S,EJECTDELAY/K/N,STARTDELAY/K/N,
  73.     FLUSHDELAY/K/N,INHIBITDELAY/K/N,NOCHECK/S
  74.  
  75.  
  76. HANDLER:    DOS Device name to be parked, or name of the volume. To 
  77.         restart a unit, this must be the device name.
  78.         This *must* be the name of the dos device driver, i.e.
  79.         a string like "DH0:" or "SYS:".        
  80.         Alternatively, this may be the name of the exec.device, i.e.
  81.         "oktagon.device" or "gvpscsi.device".
  82.  
  83. UNIT:        The unit number of the exec device. Makes only sense if
  84.         HANDLER is an exec style device name.
  85.  
  86. FLAGS:        The flags for opening the device. Defaults to zero and is
  87.         usually not required.
  88.  
  89. SCSI:        If given, try to park the unit with direct SCSI commands.
  90.         This should work with all scsi.device compatible device
  91.         drivers.
  92.         If not given, try to use the TD_EJECT, CMD_START 
  93.         and CMD_STOP.
  94.  
  95.         Unfortunately, most device drivers do not support 
  96.         TD_EJECT, CMD_START/STOP. The "SCSI" keyword is 
  97.         therefore almost always required.
  98.  
  99. ON=START:    Restart the device and the partitions in question.
  100.  
  101.  
  102. EJECT:        Eject the given device, if possible. In almost all
  103.         cases the SCSI keyword IS required since there is almost
  104.         no device which implements the - documented though -
  105.         command TD_EJECT
  106.  
  107. EJECTDELAY:    The delay in 50th of seconds Park should wait after
  108.         ejecting and before re-running the filing system. Defaults
  109.         to 50, i.e. one second.
  110.  
  111. STARTDELAY:    The delay in 50th of seconds Park has to wait after
  112.         having started a device until the filing system is allowed
  113.         to touch the disk again. Thus, this should be the spin-up
  114.         delay of the device. Defaults to 50, i.e. one second.
  115.  
  116. FLUSHDELAY:    The delay in 50th of seconds Park waits for the filing 
  117.         system to execute ACTION_FLUSH, i.e. to flush its buffers
  118.         to the disk. Unfortunately, this packet is broken - which
  119.         requires this ugly, and unsafe(!) workaround.
  120.  
  121. INHIBITDELAY:    The delay in 50th of a second park waits after stopping
  122.         the filing system and before parking the device. This is
  123.         required by the gvpscsi.device since this device fiddles
  124.         on its own in the device list of the DOS (Bah!) and may
  125.         lead to enforcer hits of the FFS. Defaults to one second. 
  126.  
  127. NOCHECK:    Bypasses the test if the filing system of the drive(s) to
  128.         be parked is up and working. If you see a message like
  129.         "Drive xyz is already stopped", but the handler is just
  130.         disabled for whatever reason, insert this argument.
  131.  
  132. _____________________________________________________________________________
  133.  
  134. Examples:
  135.  
  136. Park all partitions on the oktagon.device, unit 2: 
  137. (The oktagon knowns CMD_STOP, SCSI is not required)
  138.  
  139.     Park oktagon.device unit 2
  140.  
  141.  
  142. Park all partitions on the gvpscsi.device, unit 6:
  143. (The gvpscsi.device does NOT know the CMD_STOP, SCSI is required)
  144.  
  145.     Park gvpscsi.device unit 6 scsi
  146.  
  147. The "device" keyword is very important in both cases.
  148.  
  149.  
  150. Park the partition DH0: and all other partitions on the same device:
  151.  
  152.     Park DH0: scsi
  153.  
  154.  
  155. Restart DH0: and all other partitions on that device:
  156.  
  157.     Park DH0: on scsi
  158.  
  159.  
  160. Eject a ZIP drive, named ZIP:
  161.  
  162.     Park ZIP: scsi eject
  163.  
  164.  
  165. Eject a SCSI CD, named CD0:
  166.  
  167.     Park CD0: scsi eject nocheck flushdelay=0 ejectdelay=0
  168.  
  169. A flush delay isn't needed here because a CD filing system can't write
  170. anything to a CD.
  171.  
  172. _____________________________________________________________________________
  173.  
  174.                          The THOR-Software Licence (v2, 24th June 1998)
  175.  
  176.  
  177. This License applies to the computer programs known as "Park".
  178. The "Program", below, refers to such program. The "Archive" refers to 
  179. the package of distribution, as prepared by the author of the Program, 
  180. Thomas Richter. Each licensee is addressed as "you".
  181.  
  182.  
  183. The Program and the data in the archive are freely distributable
  184. under the restrictions stated below, but are also Copyright (c)
  185. Thomas Richter.
  186.  
  187. Distribution of the Program, the Archive and the data in the Archive by a
  188. commercial organization without written permission from the author to any
  189. third party is prohibited if any payment is made in connection with such
  190. distribution, whether directly (as in payment for a copy of the Program) or
  191. indirectly (as in payment for some service related to the Program, or
  192. payment for some product or service that includes a copy of the Program
  193. "without charge"; these are only examples, and not an exhaustive enumeration
  194. of prohibited activities).
  195.  
  196.  
  197. However, the following methods of distribution
  198. involving payment shall not in and of themselves be a violation of this
  199. restriction:
  200.  
  201.  
  202. (i) Posting the Program on a public access information storage and
  203. retrieval service for which a fee is received for retrieving information
  204. (such as an on-line service), provided that the fee is not
  205. content-dependent (i.e., the fee would be the same for retrieving the same
  206. volume of information consisting of random data).
  207.  
  208.  
  209. (ii) Distributing the Program on a CD-ROM, provided that
  210.  
  211. a) the Archive is reproduced entirely and verbatim on such CD-ROM, including
  212. especially this licence agreement;
  213.  
  214. b) the CD-ROM is made available to the public for a nominal fee only,
  215.  
  216. c) a copy of the CD is made available to the author for free except for
  217. shipment costs, and
  218.  
  219. d) provided further that all information on such CD-ROM is redistributable
  220. for non-commercial purposes without charge.
  221.  
  222.  
  223. Redistribution of a modified version of the Archive, the Program or the
  224. contents of the Archive is prohibited in any way, by any organization,
  225. regardless whether commercial or non-commercial. Everything must be kept
  226. together, in original and unmodified form.
  227.  
  228.  
  229.  
  230.  
  231. Limitations.
  232.  
  233.  
  234. THE PROGRAM IS PROVIDED TO YOU "AS IS", WITHOUT WARRANTY. THERE IS NO
  235. WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
  236. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  237. PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE
  238. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD
  239. THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  240. SERVICING, REPAIR OR CORRECTION.
  241.  
  242.  
  243. IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE THE PROGRAM, THE ARCHIVE
  244. AND ALL DATA OF THIS ARCHIVE FROM YOUR STORAGE SYSTEM. YOU ACCEPT THIS
  245. LICENCE BY USING OR REDISTRIBUTING THE PROGRAM.
  246.  
  247.  
  248.                                                         Thomas Richter
  249. ____________________________________________________________________________
  250.  
  251. Thomas,        
  252.     January 1999
  253.  
  254.  
  255. ============================= Archive contents =============================
  256.  
  257. Original  Packed Ratio    Date     Time    Name
  258. -------- ------- ----- --------- --------  -------------
  259.     3656    2208 39.6% 07-Jan-99 14:11:48 +Park
  260.     8742    3477 60.2% 07-Jan-99 14:11:14 +Park.readme
  261.      856     379 55.7% 19-Apr-98 17:36:02 +Park.readme.info
  262. -------- ------- ----- --------- --------
  263.    13254    6064 54.2% 13-Jan-99 19:41:14   3 files
  264.